package com.imooc.project.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 现金结算表
 * </p>
 *
 * @author jobob
 * @since 2021-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TStatementCash对象", description="现金结算表")
public class TStatementCash implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "结算单号")
    private Long orderNo;

    @ApiModelProperty(value = "通行证编号")
    private String userId;

    @ApiModelProperty(value = "通行证账号")
    private String userName;

    @ApiModelProperty(value = "交易单号(对应订单信息表order_no)")
    private String tradeNo;

    @ApiModelProperty(value = "订单金额（元）")
    private BigDecimal amount;

    @ApiModelProperty(value = "手续费金额（元）")
    private BigDecimal charge;

    @ApiModelProperty(value = "订单结算金额（元）")
    private BigDecimal settleAmount;

    @ApiModelProperty(value = "结算时间")
    private LocalDateTime settleTime;

    @ApiModelProperty(value = "结算状态0=未结算,1=已结算")
    private Integer settleStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateUser;


}
